FROM openjdk:8-jdk-alpine

ARG APP_NAME=sentinel-dashboard
ARG APP_VERSION=1.8.3
ARG SERVER_PORT=8898
# 指定上下文环境
WORKDIR /app
EXPOSE 8898

ADD ./${APP_NAME}-${APP_VERSION}.jar /app/app.jar
ENTRYPOINT ["java","-Dserver.port=8898","-Dproject.name=sentinel-dashboard","-jar","/app/app.jar"]
# CMD ["-Dserver.port=${SERVER_PORT}","-Dproject.name=sentinel-dashboard"]
